package com.apes.fico.masterdata.gl.respository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.fico.masterdata.gl.model.AccountingSystem;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface AccountingSystemRepository extends CustomRepository<AccountingSystem,String> {
    @Query("select T from AccountingSystem T where id like %:value%  or name like %:value%")
    Page<AccountingSystem> find(@Param("value") String value, Pageable pageable);

    AccountingSystem findByAccIdRule(String id);
}
